package com.cyzy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.mapper.CouponMapper;
import com.cyzy.pojo.Coupon;
import com.cyzy.service.CouponService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements CouponService {

    @Autowired
    private CouponMapper couponMapper;

    @Override
    public Coupon selectCoupon(long templateId) {
        return couponMapper.selectById(templateId);
    }

    @Override
    public List<Coupon> selectCoupon1() {
        return couponMapper.selectCoupon1();
    }
}
